package com.chen.vo;

import com.chen.base.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 部门表
 */
@Data
@NoArgsConstructor
public class DeptVo extends BaseVo {
    /**
     * 父部门编号
     */
    private String parentDeptNo;
    /**
     * 部门编号
     */
    private String deptNo;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 排序
     */
    private Integer sortNo;
    /**
     * 负责人Id
     */
    private Long leaderId;
    /**
     * 负责人姓名
     */
    private String leaderName;
    /**
     * 角色查询部门：部门对应角色id
     */
    private String roleId;
    /**
     * 层级
     */
    private Integer level = 4;
    @Builder
    public DeptVo(Long id, String dataState, String parentDeptNo, String deptNo, String deptName, Integer sortNo, Long leaderId, String leaderName, String roleId, Integer level) {
        super(id, dataState);
        this.parentDeptNo = parentDeptNo;
        this.deptNo = deptNo;
        this.deptName = deptName;
        this.sortNo = sortNo;
        this.leaderId = leaderId;
        this.leaderName = leaderName;
        this.roleId = roleId;
        this.level = level;
    }
}
